import 'dart:convert';
/// id : "1488470508545331200"
/// name : "往事如风"
/// phone : "18866259537"
/// gender : 1

Friends friendsFromJson(String str) => Friends.fromJson(json.decode(str));
String friendsToJson(Friends data) => json.encode(data.toJson());
class Friends {
  Friends({
      String? id, 
      String? name, 
      String? phone, 
      int? gender,}){
    _id = id;
    _name = name;
    _phone = phone;
    _gender = gender;
}

  Friends.fromJson(dynamic json) {
    _id = json['id'];
    _name = json['name'];
    _phone = json['phone'];
    _gender = json['gender'];
  }
  String? _id;
  String? _name;
  String? _phone;
  int? _gender;

  String? get id => _id;
  String? get name => _name;
  String? get phone => _phone;
  int? get gender => _gender;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['name'] = _name;
    map['phone'] = _phone;
    map['gender'] = _gender;
    return map;
  }

}